<script setup>
import { onMounted, onUnmounted} from 'vue'
// vue3中生命周期函数可以多次调用
onMounted(() => {
  console.log('我是onMounted111')
})


onMounted(() => {
  console.log('我是onMounted222')
})


onUnmounted(() => {
  console.log('清除定时器,绑定的事件等,防止内存泄漏')
})
</script>

<template>
  <div class="-page">
    生命周期演示
  </div>
</template>

<style scoped></style>
